/**
 * 
 */
package com.newbsd.web.maventest.service.impl;

import java.util.List;

import com.newbsd.web.maventest.dao.ManagerDao;
import com.newbsd.web.maventest.dao.impl.ManagerDaoImpl;
import com.newbsd.web.maventest.pojo.Manager;
import com.newbsd.web.maventest.pojo.User;
import com.newbsd.web.maventest.service.ManagerService;

/**
 * @author Mei
 *	业务层接口实现类
 */
public class ManagerServiceImpl implements ManagerService{
	
	private ManagerDao managerDao= new ManagerDaoImpl();
	
	/**
	 * 获取所有管理员信息
	 */
	public Manager getAll() {
		return managerDao.getAll();
	}

	//获取管理员的个人信息
	public Manager getManager(Manager m) {
		// TODO Auto-generated method stub
		return managerDao.getManager(m);
	}

	@Override
	public Manager login(String mName, String mPwd) {
		// TODO Auto-generated method stub
		return managerDao.login(mName, mPwd);
	}

	@Override
	public void updateAdmin(Manager manager) {
		managerDao.updateManager(manager);
	}
	
	

}
